{extend name="login_base" /} {block name="seo"}
{/block}
{block name="css"}
{/block}
{block name="body"}
<div class="u-container">
    <a href="/" class="u-logo">
        <img src="__HOME__/images/logo.png"/>
    </a>
    <form class="layui-form" action="" id="registerForm"  method="post">
        <div class="inline layui-clear">
            <i class="iconfont icon-zhanghao"></i>
            <input type="text"  id="username" name="username" lay-verify="username" autocomplete="off" placeholder="请输入您的手机或者邮箱"/>
        </div>
        <div class="inline layui-clear">
            <i class="iconfont icon-yanzhengma"></i>
            <input type="text" id="captcha" name="captcha" lay-verify="verify_code" autocomplete="off" placeholder="右侧验证码" maxlength="4"
                   style="width:calc(100% - 120px - 70px);"/>
            <img src="{:url('index/page/captcha')}?'+Math.random();" title="点击可刷新验证码" onclick="this.src='{:url(\'index/page/captcha\')}?_='+Math.random()"  class="imgcode" />
        </div>
        <div class="inline code">
            <i class="iconfont icon-yanzhengma"></i>
            <input type="text" placeholder="验证码" lay-verify="verify_smscode" autocomplete="off" name="smscode" maxlength="6" autocomplete="off" required class="layui-required"  style="width:calc(100% - 120px - 70px);"/>

            <button type="button" class="layui-btn layui-btn-normal" id="sendRegCode">发送验证码</button>

        </div>
        <div class="inline layui-clear">
            <i class="iconfont icon-mima"></i>
            <input type="password" name="password" lay-verify="password" autocomplete="off" placeholder="请输入您的密码"/>
        </div>
        <div class="loo layui-clear">
            {if $site_config.qqlogin_status eq 1}
            <div class="ks">
                <a href="/user/qqlogin.html"><img src="__HOME__/images/qq.png"></a>
            </div>
            {/if}
            <div class="zc">
                <a href="/user/login.html" id="yjyl" class="zczh">我已有账号了？</a>
            </div>
        </div>
        <button class="btn" lay-submit lay-filter="register">立即注册</button>
    </form>
</div>
{/block}
{block name="script"}

<script id="w_info_box" type="text/html">
    <form class="layui-form " action="" id="sendCode">
        <div class="layui-form-item">
            <input type="text" class="mails phone_cv" name="object" readonly/>
            <input type="hidden"  id="checktype" name="checktype" value="" />
        </div>
        <div class="layui-form-item" style="position: relative">
            <input type="text" class="mails sd_dx_code" name="checkcode" autocomplete="off" maxlength="6" placeholder="验证码"/>
        </div>
    </form>
</script>
<script type="text/javascript">
    $(document).ready(function () {
        layui.use('form', function () {
            var form = layui.form;
            formVerify(form);
            registerListen(form);
        })
    });
</script>
{/block}
